package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wmmedia.dtos.WmMaterialDTO;
import com.heima.model.wmmedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialService extends IService<WmMaterial> {

    //图片上传
    ResponseResult uploadPicture(MultipartFile multipartFile);

    //素材列表加载
    ResponseResult findList(WmMaterialDTO dto);

    //图片删除
    ResponseResult deletePic(Integer id);

    //修改收藏图片
    ResponseResult isCollect(Integer id,short isCol);
}
